home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / Java / Pdapilot / mail / SyncPref.java < prev   
Encoding:
Java Source  |  1997-08-08  |  1.0 KB  |  35 lines

  1.  
  2. package Pdapilot.mail;
  3.  
  4. import java.io.*;
  5.  
  6. public class SyncPref extends Pdapilot.Pref {
  7.     public sync syncType;
  8.     public boolean getHigh;
  9.     public boolean getContaining, truncate;
  10.     public String filterTo, filterFrom, filterSubject;
  11.     
  12.     public native void unpack(byte[] data);
  13.     public native byte[] pack();
  14.                     
  15.         
  16.         public SyncPref() {
  17.             super(null, new Pdapilot.Char4("mail"), 1, 1, true);
  18.         }
  19.  
  20.         public SyncPref(boolean local) {
  21.             super(null, new Pdapilot.Char4("mail"), local ? 1 : 2, 1, true);
  22.         }
  23.         
  24.         public SyncPref(byte[] contents, Pdapilot.Char4 creator, int id, int version, boolean backup) {
  25.             super(contents, creator, id, version, backup);
  26.         }
  27.         
  28.         public String describe() {
  29.             return "syncType="+syncType+", getHigh=" +getHigh+", getContaining="+getContaining+", "+
  30.                    "truncate="+truncate+", filterTo="+Pdapilot.Util.prettyPrint(filterTo)+
  31.                    ", filterFrom="+Pdapilot.Util.prettyPrint(filterFrom)+
  32.                    ", filterSubject="+Pdapilot.Util.prettyPrint(filterSubject)+", "+super.describe();
  33.         }
  34. }
  35.